﻿using NET6.WebAPI.Configs;
using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace NET6.WebAPI.Entities.User
{
    /// <summary>
    /// 用户日志表
    /// </summary>
    [SugarTable(nameof(Sys_UserLog), DatabaseConfig.Test)]
    [Table(nameof(Sys_UserLog))]
    public class Sys_UserLog
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 用户表 ID
        /// </summary>
        public int UserID { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 信息
        /// </summary>
        public string Info { get; set; }
    }
}
